package com.adinnet.admin.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;


@Slf4j
@EnableScheduling   // 1.开启定时任务
@Component
public class ScheduledServer {

    /**
     * 定时给 app发送 socket 未确认消息
     */
//    @Scheduled(cron = "0/2 * * * * *")
    public void scheduled() {
            log.info("定时给 app发送 消息");
    }
}